package dexter.core.common;

import dexter.net.msg.common.ResponseParams;

public class InitResult implements ResponseParams {

	private static final long serialVersionUID = -5458964230763663163L;
	
	private String job;
	private boolean validated;
	private String info;
	
	public InitResult(boolean validated, String info, String job) {
		this.validated = validated;
		this.info = info;
		this.job = job;
	}
	
	public boolean isValidated(){
		return validated;
	}
    
	public String getInfo(){
		return info;
	}
	
	public String getJob() {
		return job;
	}
    
    public String toString() {
    	String s = "";
    	if (validated) s+= "validated";
    	else s+= "fail";
    	return s+=" -> "+info;
    }

}